<?php

namespace App\Http\Controllers\Api;

use App\Carousel;
use App\Http\Controllers\ApiResponse;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;

class CarouselController extends Controller
{
    use ApiResponse;
    public function index()
    {
       $list=Carousel::status(1)->orderByDesc('sort')->get();
       return $this->data($list);
    }
}
